﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:Controls="clr-namespace:PSE.Framework.UI.Controls.SmartClient;assembly=PSE.Framework.UI.Controls">

    <Storyboard x:Key="AnimationDisplayMenu">
        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="PART_Zoom" Storyboard.TargetProperty="(FrameworkElement.Height)">
            <SplineDoubleKeyFrame KeyTime="00:00:00" Value="120"/>
        </DoubleAnimationUsingKeyFrames>
    </Storyboard>

    <Storyboard x:Key="AnimationHideMenu">
        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="PART_Zoom" Storyboard.TargetProperty="(FrameworkElement.Height)">
            <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
        </DoubleAnimationUsingKeyFrames>
    </Storyboard>

    <Style x:Key="ControlWindowZoomButton" TargetType="Button">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="Button">
                    <Border HorizontalAlignment="Left" VerticalAlignment="Bottom" Width="63" Height="13.427" ClipToBounds="True">
                        <Canvas Width="63" Height="13.344">
                            <Grid Width="63" Height="13.344">
                                <Rectangle VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Stroke="{DynamicResource BrushWindowZoomBorder1}" StrokeThickness="1" RadiusX="2" RadiusY="2" Fill="{DynamicResource BrushWindowZoomBackground}" Margin="0,-4.534,0,-1.674"/>
                                <StackPanel Orientation="Horizontal" Margin="6.729,0,4.379,0">
                                    <Path Fill="{DynamicResource BrushWindowZoomIconBackground}" Margin="3,3,0,0" Width="11.944" Height="7.598" Stretch="Fill" Stroke="{x:Null}" StrokeThickness="0.3" HorizontalAlignment="Left" x:Name="path" RenderTransformOrigin="0.66525586314383,0.495519092896517" Data="{DynamicResource IconWindowZoom}">
                                        <Path.RenderTransform>
                                            <TransformGroup>
                                                <ScaleTransform ScaleX="1" ScaleY="1"/>
                                                <SkewTransform AngleX="0" AngleY="0"/>
                                                <RotateTransform Angle="47.976"/>
                                                <TranslateTransform X="0" Y="0"/>
                                            </TransformGroup>
                                        </Path.RenderTransform>
                                    </Path>
                                    <TextBlock Height="11.333" Margin="1,-2,0,0" FontSize="10" Foreground="{DynamicResource BrushWindowZoomForeground}" Text="{Binding WindowZoom, Mode=OneWay, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Controls:Window}} }" Style="{DynamicResource ControlFont}"/>
                                    <TextBlock Height="11.333" Margin="0,-2,0,0" FontSize="10" Foreground="{DynamicResource BrushWindowZoomForeground}" Text="%" TextWrapping="Wrap" Style="{DynamicResource ControlFont}" HorizontalAlignment="Center" VerticalAlignment="Center"/>
			                    </StackPanel>
                            </Grid>
                        </Canvas>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!--BEGIN VERTICAL SCROLLBAR-->
    <!--BEGIN BUTTON UP-->
    <Style x:Key="ControlWindowErrorMessageVerticalScrollBarButtonUp" TargetType="{x:Type RepeatButton}">
        <Setter Property="OverridesDefaultStyle" Value="True"/>
        <Setter Property="Focusable" Value="False"/>
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="Height" Value="10"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type RepeatButton}">
                    <Grid Background="Transparent">
                        <Path x:Name="ArrowDesign" StrokeThickness="2" Width="15" Height="10.96875" Canvas.Left="394.498" Canvas.Top="312.138" Stretch="Fill" StrokeMiterLimit="2.75" Stroke="{DynamicResource BrushScrollBarArrowBorder}" Data="{DynamicResource IconVerticalScrollBarArrowUp}" Fill="{DynamicResource BrushVerticalScrollBarArrowUp}"/>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter Property="Stroke" Value="{DynamicResource BrushScrollBarArrowBorderHover}" TargetName="ArrowDesign"/>
                            <Setter Property="Fill" Value="{DynamicResource BrushVerticalScrollBarArrowUpHover}" TargetName="ArrowDesign"/>
                        </Trigger>
                        <Trigger Property="IsMouseCaptured" Value="True">
                            <Setter Property="Stroke" Value="{DynamicResource BrushScrollBarArrowBorderPressed}" TargetName="ArrowDesign"/>
                            <Setter Property="Fill" Value="{DynamicResource BrushVerticalScrollBarArrowUpPressed}" TargetName="ArrowDesign"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <!--END BUTTON UP-->

    <!--BEGIN BUTTON DOWN-->
    <Style x:Key="ControlWindowErrorMessageVerticalScrollBarButtonDown" TargetType="{x:Type RepeatButton}">
        <Setter Property="OverridesDefaultStyle" Value="True"/>
        <Setter Property="Focusable" Value="False"/>
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="Height" Value="10"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type RepeatButton}">
                    <Grid Background="Transparent">
                        <Path x:Name="ArrowDesign" StrokeThickness="2" Width="15" Height="10.96875" Canvas.Left="394.498" Canvas.Top="312.138" Stretch="Fill" StrokeMiterLimit="2.75" Stroke="{DynamicResource BrushScrollBarArrowBorder}" Data="{DynamicResource IconVerticalScrollBarArrowDown}" Fill="{DynamicResource BrushVerticalScrollBarArrowDown}"/>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter Property="Stroke" Value="{DynamicResource BrushScrollBarArrowBorderHover}" TargetName="ArrowDesign"/>
                            <Setter Property="Fill" Value="{DynamicResource BrushVerticalScrollBarArrowDownHover}" TargetName="ArrowDesign"/>
                        </Trigger>
                        <Trigger Property="IsMouseCaptured" Value="True">
                            <Setter Property="Stroke" Value="{DynamicResource BrushScrollBarArrowBorderPressed}" TargetName="ArrowDesign"/>
                            <Setter Property="Fill" Value="{DynamicResource BrushVerticalScrollBarArrowDownPressed}" TargetName="ArrowDesign"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <!--END BUTTON DOWN-->
    <!--END VERTICAL SCROLLBAR-->

    <!--BEGIN SCROLLVIEWER-->
    <Style x:Key="ControlWindowErrorMessageScrollViewer" TargetType="ScrollViewer">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="ScrollViewer">
                    <Border x:Name="Border" CornerRadius="5" VerticalAlignment="Stretch">
                        <Grid SnapsToDevicePixels="True">
                            <Grid.RowDefinitions>
                                <RowDefinition/>
                                <RowDefinition MaxHeight="10"/>
                            </Grid.RowDefinitions>
                            <ScrollContentPresenter Grid.Row="0" Margin="{TemplateBinding Padding}" x:Name="PART_ScrollContentPresenter" Grid.Column="0" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" CanContentScroll="{TemplateBinding CanContentScroll}" CanHorizontallyScroll="False" CanVerticallyScroll="False" HorizontalAlignment="Left"/>
                            <WrapPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Center">
                                <RepeatButton Style="{StaticResource ControlWindowErrorMessageVerticalScrollBarButtonUp}" Command="{x:Static ScrollBar.LineUpCommand}"/>
                                <RepeatButton Style="{StaticResource ControlWindowErrorMessageVerticalScrollBarButtonDown}" Command="{x:Static ScrollBar.LineDownCommand}" Margin="3,0,0,0"/>
                            </WrapPanel>
                        </Grid>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <!--END SCROLLVIEWER-->

    <Style x:Key="ControlWindowErrorMessageListBoxItem" TargetType="ListBoxItem">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="ListBoxItem">
                    <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
                        <TextBlock Text="{Binding Message}" Width="{Binding Path=ActualWidth, RelativeSource={RelativeSource AncestorType=ListBox}}" Style="{DynamicResource ControlFont}" Padding="0" TextWrapping="Wrap" HorizontalAlignment="Stretch" Margin="0,0,0,3.5" Foreground="{DynamicResource BrushWindowTextBlock2}"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="ControlWindowErrorMessageListBox" TargetType="ListBox">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="ListBox">
                    <ScrollViewer VerticalScrollBarVisibility="Visible" Style="{DynamicResource ControlWindowErrorMessageScrollViewer}" VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
                        <ItemsPresenter/>
                    </ScrollViewer>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!--BEGIN WINDOW-->
    <Style x:Key="ControlWindow" TargetType="Controls:Window">
        <Setter Property="WindowStyle" Value="None"/>
        <Setter Property="WindowState" Value="Maximized"/>
        <Setter Property="Width" Value="1024"/>
        <Setter Property="Height" Value="734"/>
        <Setter Property="MinWidth" Value="276"/>
        <Setter Property="MinHeight" Value="150"/>
        <!--<Setter Property="MinContentWidth" Value="780"/>
        <Setter Property="MinContentHeight" Value="550"/>-->
        <Setter Property="ResizeMode" Value="CanResizeWithGrip"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="Controls:Window">
                    <ControlTemplate.Resources>
                        <Controls:WindowContentSizeConverter x:Key="windowContentSizeConverter" />
                    </ControlTemplate.Resources>
                    <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch" x:Name="PART_WindowRoot">
                        <Border Margin="0,0,0,0" Background="{DynamicResource BrushWindowBackground}"/>
                        <Border BorderBrush="{DynamicResource BrushWindowBorder1}" BorderThickness="1" Margin="3" Background="{DynamicResource BrushWindowBackground2}"/>

                        <!--Top-->
                        <Path Stretch="Fill" Stroke="{DynamicResource BrushWindowBorder1}" StrokeThickness="1" Margin="156.262,5,5,0" VerticalAlignment="Top" Height="32.5" Data="M12.605347,0.5 L850.21095,0.5 C851.04121,0.49999046 851.85188,0.58392918 852.63484,0.74377459 853.41774,0.90359944 854.17299,1.1393309 854.89241,1.4429269 855.61189,1.7465035 856.29555,2.1179447 856.93538,2.5491919 857.57527,2.9804527 858.17128,3.4715199 858.71535,4.0143673 859.25948,4.5571973 859.75172,5.1518075 860.18398,5.7901413 860.61629,6.428487 860.9886,7.1105568 861.29292,7.8283269 861.59718,8.5460722 861.83351,9.2995178 861.99367,10.080611 862.15388,10.861703 862.23805,11.670442&#xd;&#xa;862.23805,12.498779 L862.23805,31.999993 0.5,31.999993 0.5,31.957176 0.57823181,31.957176 0.57823181,12.498779 C0.57823181,11.670442 0.66236877,10.861703 0.82258606,10.080611 0.98278809,9.2995178 1.2190857,8.5460722 1.5233765,7.8283269 1.8276825,7.1105568 2.1999969,6.428487 2.6322632,5.7901413 3.0645447,5.1518075 3.5567627,4.5571973 4.1008911,4.0143673 4.6450043,3.4715199 5.2410278,2.9804527 5.8808746,2.5491919 6.5207062,2.1179447 7.2043915,1.7465035 7.9238434,1.4429269 8.6432953,1.1393309 9.3985138,0.90359944 10.181458,0.74377459 10.964401,0.58392918 11.775055,0.49999046&#xd;&#xa;12.605347,0.5 z" Fill="{DynamicResource BrushWindowTabTopBackground}"/>
                        <Path Stretch="Fill" Stroke="{DynamicResource BrushWindowBorder1}" StrokeThickness="1" Margin="5,36.5,5,16" Data="M12.101507,0.5 L1013.5001,0.5 1013.5001,12.455994 1013.5001,86.484154 1013.5001,671.00122 C1013.5001,671.82959 1013.4159,672.63831 1013.2557,673.41937 1013.0955,674.2005 1012.8592,674.95392 1012.5549,675.67169 1012.2506,676.3894 1011.8783,677.07147 1011.4461,677.70984 1011.0137,678.34821 1010.5215,678.94281 1009.9774,679.48566 1009.4333,680.02844 1008.8373,680.51953 1008.1974,680.95081 1007.5576,681.38202 1006.8739,681.75348 1006.1544,682.05707 1005.435,682.36066 1004.6798,682.59637 1003.8968,682.75623 1003.1139,682.91608 1002.3032,683&#xd;&#xa;1001.473,683 L12.527094,683 C11.696805,683 10.886159,682.91608 10.10322,682.75623 9.3202901,682.59637 8.5650678,682.36066 7.8456063,682.05707 7.1261663,681.75348 6.4424877,681.38202 5.8026423,680.95081 5.1627965,680.51953 4.5667839,680.02844 4.0226669,679.48566 3.4785454,678.94281 2.9863198,678.34821 2.5540359,677.70984 2.1217771,677.07147 1.7494599,676.3894 1.4451549,675.67169 1.1408553,674.95392 0.90456796,674.2005 0.74434662,673.41937 0.58414435,672.63831 0.50000811,671.82959&#xd;&#xa;0.5,671.00122 L0.5,12.455994 C0.50000811,11.627647 0.58414435,10.818905 0.74434662,10.037823 0.90456796,9.2567215 1.1408553,8.503273 1.4451549,7.785511 1.7494599,7.0677567 2.1217771,6.3856888 2.5540359,5.7473488 2.9863198,5.1090088 3.4785454,4.5143967 4.0226669,3.9715576 4.5667839,3.4287224 5.1627965,2.9376526 5.8026423,2.5063972 6.4424877,2.0751457 7.1261663,1.7037048 7.8456063,1.400116 8.5650678,1.0965347 9.3202901,0.8608017 10.10322,0.70097733 L12.101507,0.5 z" Fill="{DynamicResource BrushWindowBackground4}"/>

                        <Grid VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
                            <Grid.RowDefinitions>
                                <RowDefinition Height="41"/>
                                <RowDefinition Height="*"/>
                                <RowDefinition Height="18"/>
                            </Grid.RowDefinitions>

                            <Grid Grid.Row="0" x:Name="Header" Background="Transparent">
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="156.262"/>
                                    <ColumnDefinition Width="*"/>
                                    <ColumnDefinition Width="85.887"/>
                                </Grid.ColumnDefinitions>

                                <Grid x:Name="Logo_" Width="89.075" Height="20.066" HorizontalAlignment="Left" Margin="42.668,8.226,0,0" VerticalAlignment="Top">
                                    <Path Stretch="Fill" Fill="{DynamicResource BrushWindowPath1}" Data="F1 M 199.044,442.339L 203.752,430.567C 205.734,431.809 208.089,432.8 210.814,433.667C 213.538,434.409 216.389,434.781 219.488,434.904C 221.345,434.904 223.08,434.533 224.69,434.037C 226.3,433.419 227.54,432.551 228.53,431.435C 229.521,430.32 230.017,428.833 230.017,427.099C 230.017,425.24 229.274,423.632 227.912,422.145C 226.425,420.657 224.194,419.172 221.097,417.684C 218.62,416.321 216.389,414.957 214.284,413.346C 212.176,411.613 210.566,409.755 209.204,407.524C 207.964,405.417 207.22,402.817 207.22,399.968C 207.22,395.508 208.461,391.541 210.814,388.321C 213.168,385.099 216.265,382.621 220.23,380.888C 224.194,379.153 228.654,378.287 233.486,378.287C 237.574,378.287 240.796,378.656 243.398,379.4C 245.874,380.02 247.858,380.888 249.221,381.756L 244.761,393.525C 243.645,392.905 242.036,392.284 239.805,391.541C 237.7,390.923 235.22,390.551 232.372,390.551C 229.025,390.551 226.549,391.296 224.814,392.657C 223.08,394.02 222.212,395.755 222.212,397.613C 222.336,399.472 223.204,401.083 224.937,402.568C 226.796,403.931 229.025,405.417 232,407.029C 236.088,409.012 239.31,411.613 241.664,414.339C 244.016,417.312 245.132,420.657 245.257,424.622C 245.132,429.577 243.893,433.667 241.54,437.009C 239.061,440.357 235.841,442.836 231.752,444.569C 227.664,446.304 223.08,447.171 218.125,447.171C 213.416,446.921 209.452,446.427 206.229,445.435C 203.009,444.569 200.654,443.453 199.044,442.339 Z M 260.866,392.783L 272.266,392.783L 262.105,446.055L 250.708,446.055M 323.929,442.959L 322.441,446.055L 323.929,446.055M 323.929,392.783L 323.929,400.711L 315.381,446.055L 303.61,446.055L 296.176,424.747C 295.309,422.391 294.689,420.285 294.072,418.179C 293.452,416.197 292.83,414.215 292.336,412.355C 291.84,410.373 291.344,408.393 290.849,406.16L 290.601,406.285C 290.353,408.887 289.858,411.985 289.238,415.577C 288.62,419.296 288,423.136 287.132,427.346L 283.664,446.055L 273.133,446.055L 283.292,392.783L 296.548,392.783L 303.61,413.099C 304.724,416.445 305.592,419.543 306.336,422.516C 307.204,425.365 307.822,428.339 308.442,431.312L 308.689,431.312C 308.813,428.587 309.061,425.613 309.432,422.516C 309.805,419.543 310.424,415.947 311.168,412.107L 314.885,392.783M 323.929,400.711L 325.414,392.783L 323.929,392.783M 349.946,392.783L 349.946,410.993C 349.821,411.365 349.697,411.739 349.45,411.985L 344.122,423.507L 349.946,423.507L 349.946,432.179L 340.901,432.179L 334.46,446.055L 323.929,446.055L 323.929,442.959L 348.334,392.783M 412.513,435.277L 413.377,444.444C 412.018,445.188 410.158,445.684 407.804,446.18C 405.326,446.674 402.601,446.921 399.378,446.921C 394.672,446.921 390.458,445.931 386.989,444.072C 383.521,442.339 380.672,439.735 378.813,436.267C 376.83,432.924 375.84,428.833 375.716,424.127C 375.84,418.179 377.08,412.975 379.432,408.516C 381.91,403.931 385.132,400.339 389.22,397.613C 394.796,393.775 401.361,391.789 408.92,391.913C 411.768,391.913 414.245,392.161 416.352,392.657C 418.333,393.151 419.698,393.649 420.565,394.143L 417.344,403.436C 416.601,403.064 415.362,402.692 413.753,402.32C 412.018,401.949 410.034,401.701 407.804,401.701C 405.45,401.701 403.22,402.073 401.238,402.817C 399.132,403.436 397.273,404.552 395.538,405.791C 393.308,407.649 391.45,410.003 390.212,412.975C 388.973,415.825 388.229,419.172 388.229,422.888C 388.229,427.224 389.466,430.567 391.821,433.172C 394.177,435.648 397.646,437.009 402.352,437.009C 404.21,437.009 406.07,436.887 407.804,436.641C 409.54,436.267 411.149,435.896 412.513,435.277 Z M 349.946,432.179L 349.946,423.507L 355.769,423.507L 354.654,412.107C 354.654,410.497 354.406,408.887 354.282,407.029C 354.158,405.045 354.034,403.312 353.912,401.577L 353.786,401.577C 353.044,403.312 352.424,405.045 351.681,406.904C 351.061,408.393 350.444,409.755 349.946,410.993L 349.946,392.783L 362.956,392.783L 369.273,446.055L 357.256,446.055L 356.265,432.179M 446.953,392.161L 446.953,401.701C 446.089,401.825 445.218,402.073 444.477,402.444C 442.865,403.187 441.502,404.179 440.264,405.417C 438.776,406.904 437.661,408.64 436.672,410.747C 435.68,412.853 434.934,415.081 434.44,417.559C 433.822,419.791 433.576,422.145 433.576,424.248C 433.576,426.852 434.07,429.081 434.813,431.064C 435.557,432.924 436.794,434.533 438.406,435.648C 440.141,436.763 442.122,437.383 444.724,437.383C 445.469,437.383 446.21,437.259 446.953,437.135L 446.953,446.674C 445.716,446.799 444.352,446.921 443.114,446.921C 438.406,446.799 434.565,445.807 431.344,443.828C 428.122,441.967 425.646,439.241 424.034,435.896C 422.3,432.551 421.557,428.833 421.557,424.622C 421.557,421.398 421.928,418.304 422.672,415.205C 423.414,412.107 424.529,409.26 426.016,406.535C 427.38,403.808 429.237,401.577 431.344,399.472C 433.822,397.117 436.672,395.259 440.016,393.895C 442.245,393.029 444.477,392.408 446.953,392.161 Z M 446.953,446.674L 446.953,437.135C 447.821,437.009 448.688,436.763 449.557,436.392C 451.044,435.648 452.406,434.657 453.644,433.543C 455.133,432.056 456.248,430.32 457.237,428.089C 458.229,425.861 458.974,423.632 459.469,421.155C 459.964,418.8 460.21,416.568 460.21,414.339C 460.21,412.107 459.838,410.003 459.218,408.144C 458.601,406.16 457.485,404.552 455.876,403.312C 454.388,402.073 452.158,401.452 449.433,401.331C 448.565,401.331 447.698,401.452 446.953,401.701L 446.953,392.161C 448.193,391.913 449.433,391.913 450.794,391.913C 455.502,391.913 459.469,392.905 462.565,394.764C 465.786,396.745 468.141,399.346 469.876,402.692C 471.485,406.036 472.229,409.879 472.229,414.089C 472.229,419.047 471.485,423.632 469.876,428.089C 468.141,432.427 465.909,436.144 462.813,439.241C 460.21,441.593 457.362,443.453 454.141,444.817C 451.909,445.807 449.433,446.304 446.953,446.674 Z M 495.893,401.825L 493.042,416.445L 497.75,416.445C 498.865,416.445 499.857,416.321 500.724,416.072L 500.724,427.841C 500.477,427.472 500.229,427.099 499.982,426.727C 498.742,425.489 497.008,424.868 494.776,424.993L 491.31,424.993L 487.344,446.055L 476.07,446.055L 486.104,393.775C 487.964,393.276 490.068,393.029 492.672,392.783C 495.024,392.533 497.625,392.284 500.352,392.284L 500.724,392.284L 500.724,401.331L 500.229,401.331C 498.248,401.331 496.758,401.577 495.893,401.825 Z M 500.724,416.072C 502.584,415.7 504.07,414.957 505.433,413.844C 507.292,412.355 508.406,410.128 508.406,407.524C 508.406,405.417 507.54,403.808 506.052,402.817C 504.688,401.949 502.828,401.452 500.724,401.331L 500.724,392.284C 503.204,392.408 505.554,392.533 507.912,393.029C 510.264,393.525 512.494,394.267 514.354,395.508C 516.21,396.499 517.573,397.86 518.565,399.593C 519.68,401.331 520.3,403.436 520.3,405.913C 520.3,408.516 519.805,410.747 518.688,412.729C 517.573,414.711 516.21,416.321 514.354,417.808C 512.494,419.047 510.513,420.164 508.158,420.905L 508.158,421.155C 509.768,421.896 510.882,423.011 511.75,424.747C 512.494,426.356 512.989,428.461 513.237,430.941C 513.485,432.924 513.732,434.904 513.857,437.009C 514.104,438.993 514.229,440.851 514.477,442.461C 514.721,444.072 514.974,445.188 515.344,446.055L 503.576,446.055C 503.45,445.311 503.078,443.828 502.828,441.72C 502.584,439.488 502.333,436.763 501.961,433.419C 501.838,431.064 501.466,429.207 500.724,427.841L 500.724,416.072 Z " Margin="6.851,7.942,32.33,1.425"/>
                                    <Path x:Name="WindowSystemNamePlus" Visibility="Collapsed" Stretch="Fill" Fill="{DynamicResource BrushWindowPath2}" Data="F1 M 552.263,415.044C 555.276,408.312 557.96,402.732 560.323,398.304C 562.624,393.935 565.312,391.75 568.383,391.75C 569.682,391.75 570.334,392.459 570.334,393.876C 570.334,395.235 569.006,398.718 566.347,404.328C 565.164,406.807 563.482,410.439 561.296,415.222C 566.79,415.342 570.124,415.43 571.307,415.488C 575.203,415.488 577.802,415.842 579.102,416.551C 580.164,417.083 580.695,418.175 580.695,419.828C 580.695,422.782 579.424,424.256 576.886,424.256C 576.236,424.256 575.172,424.168 573.698,423.991C 572.575,423.814 568.266,423.726 560.766,423.726L 557.578,423.636C 555.63,428.242 553.739,433.114 551.908,438.251C 550.255,442.918 548.896,446.046 547.834,447.642C 546.594,449.531 545.206,450.475 543.672,450.475C 542.787,450.475 542.047,450.21 541.456,449.678C 540.687,449.028 540.304,448.231 540.304,447.286C 540.304,444.806 543.02,436.983 548.454,423.814C 543.318,424.05 539.951,424.316 538.356,424.61C 536.763,424.908 535.492,425.054 534.547,425.054C 533.07,425.054 531.891,424.406 531.006,423.106C 530.531,422.398 530.296,421.599 530.296,420.714C 530.296,418.056 531.831,416.404 534.903,415.754C 536.498,415.459 541.487,415.222 549.872,415.044L 552.263,415.044 Z " HorizontalAlignment="Right" Margin="0,0,22.95,0.901" Width="7.827" Height="9.121" VerticalAlignment="Bottom"/>
                                    <Path x:Name="WindowSystemNameSymbol" Stretch="Fill" Fill="{DynamicResource BrushWindowPath2}" Data="M 684.581,389.075L 684.581,414.844C 684.211,415.836 683.961,416.826 683.591,417.692L 683.717,417.692C 683.961,417.196 684.333,416.578 684.581,416.084L 684.581,426.119C 681.857,430.208 679.007,433.8 675.783,437.022C 671.201,445.818 665.747,453.251 659.307,458.33C 641.341,472.702 623.747,479.518 595.499,482.738L 593.271,477.782C 621.643,474.935 638.367,468.367 656.086,454.368C 658.813,452.138 661.414,449.411 663.769,446.436C 657.945,450.03 652.617,452.754 647.042,454.987C 630.938,461.304 613.219,464.031 587.698,465.146L 585.463,460.066C 611.609,459.074 629.198,456.348 645.059,450.155C 651.502,447.552 657.821,444.207 664.758,439.623C 667.111,438.011 669.341,436.03 671.573,433.924C 672.065,432.934 672.562,431.943 672.933,430.951C 666.865,434.172 661.163,436.526 655.589,438.259C 637.625,443.836 617.802,445.818 588.813,446.436L 594.138,441.111C 619.662,440.491 637.75,438.384 654.102,433.304C 660.171,431.323 666.495,428.719 673.554,424.88C 674.425,424.382 675.289,423.764 676.281,423.268C 676.898,421.41 677.518,419.676 678.141,417.819C 672.065,420.42 665.378,422.65 659.307,424.014C 643.447,427.852 627.963,429.587 607.149,430.084L 605.163,430.208L 610.617,424.755C 629.198,424.136 643.573,422.403 658.067,419.058C 665.378,417.323 673.433,414.348 680.122,411.252C 680.865,408.774 681.485,406.171 681.982,403.692C 678.266,404.686 673.307,405.554 669.221,406.171C 655.219,408.155 642.458,409.519 625.485,410.012L 630.813,404.686C 645.307,404.188 656.333,402.702 668.474,400.968C 674.174,400.224 678.883,399.358 683.219,398.119C 683.717,395.023 684.211,392.048 684.581,389.075 Z M 684.581,382.507C 683.343,382.632 682.226,382.756 680.99,382.88C 671.821,383.375 662.154,383.747 651.625,383.995L 646.299,389.199C 659.059,389.075 670.458,388.579 681.237,387.959C 682.351,387.959 683.466,387.836 684.581,387.711M 688.917,371.73L 685.945,373.092C 685.818,376.188 685.573,379.414 685.326,382.507L 684.581,382.507L 684.581,387.711L 684.829,387.711C 684.706,388.207 684.706,388.579 684.581,389.075L 684.581,414.844C 684.953,414.72 685.201,414.471 685.573,414.224C 685.326,414.844 684.953,415.464 684.581,416.084L 684.581,426.119C 685.818,424.382 686.935,422.526 688.053,420.666C 688.299,420.42 688.545,420.172 688.917,419.8L 688.917,406.295C 688.053,406.791 687.307,407.411 686.441,407.907C 686.81,406.048 687.307,404.188 687.677,402.331C 688.053,402.207 688.419,402.084 688.917,401.959L 688.917,396.632C 688.791,396.632 688.791,396.632 688.791,396.755C 688.791,396.51 688.791,396.26 688.917,396.014M 697.961,378.544C 697.838,379.414 697.589,380.4 697.343,381.27C 695.237,381.516 692.883,381.764 690.651,382.015C 691.026,378.171 691.146,374.455 691.146,370.738L 688.917,371.73L 688.917,396.014C 689.411,393.04 689.783,390.19 690.159,387.34C 692.135,387.092 694.119,386.844 695.979,386.72C 695.237,389.571 694.37,392.543 693.378,395.392C 692.51,395.642 691.643,395.888 690.775,396.135C 690.159,396.383 689.534,396.51 688.917,396.632L 688.917,401.959C 689.659,401.836 690.526,401.587 691.271,401.34C 690.651,402.951 690.159,404.438 689.534,405.926C 689.291,406.048 689.042,406.171 688.917,406.295L 688.917,419.8C 692.135,416.704 695.111,413.234 697.961,409.395L 697.961,399.482C 697.838,399.728 697.589,399.852 697.466,399.978C 697.466,399.852 697.589,399.606 697.589,399.482C 697.714,399.358 697.838,399.358 697.961,399.358M 702.919,365.287L 700.067,366.527C 699.445,370.612 698.831,374.579 697.961,378.544L 697.961,399.358C 698.086,399.235 698.333,399.11 698.455,399.11C 698.333,399.235 698.211,399.358 697.961,399.482L 697.961,409.395C 699.695,407.038 701.307,404.562 702.919,402.084L 702.919,391.551C 701.802,392.048 700.813,392.543 699.695,393.04C 700.438,390.684 701.182,388.207 701.802,385.852C 702.171,385.731 702.545,385.731 702.919,385.606M 712.209,368.631C 711.097,372.226 709.857,375.818 708.493,379.287C 706.633,379.658 704.778,380.03 703.039,380.4C 704.154,374.952 705.023,369.376 705.643,363.926L 702.919,365.287L 702.919,385.606C 704.031,385.483 705.023,385.234 706.138,384.987C 705.146,387.216 704.031,389.447 702.919,391.551L 702.919,402.084C 706.138,399.11 709.237,395.888 712.083,392.667C 712.083,392.543 712.209,392.543 712.209,392.543L 712.209,384.243C 711.961,384.615 711.838,384.863 711.589,385.111C 711.838,384.615 711.961,384.119 712.209,383.623M 772.545,332.827C 761.893,346.58 752.349,356.615 742.438,363.802C 747.641,356.863 752.846,348.81 758.05,339.64L 749.873,343.48C 742.813,355.128 735.873,364.544 728.81,372.226C 727.695,372.72 726.583,373.216 725.589,373.714C 730.297,365.659 734.386,357.356 737.729,349.058L 730.794,352.279C 727.075,360.579 722.742,368.879 717.534,376.686C 716.547,377.056 715.554,377.43 714.565,377.676C 717.042,370.987 719.149,363.926 720.758,356.986L 714.69,359.714C 713.941,362.686 713.075,365.659 712.209,368.631L 712.209,383.623C 712.455,383.623 712.581,383.499 712.831,383.499C 712.581,383.747 712.455,383.995 712.209,384.243L 712.209,392.543C 719.149,388.331 725.835,383.006 732.157,376.188C 748.881,367.64 764.493,353.146 782.331,328.244L 772.545,332.827 Z " HorizontalAlignment="Right" Margin="0,0.178,-0.369,-4.107" Width="30.576"/>
                                    <Ellipse Stretch="Fill" StrokeThickness="0.3" StrokeMiterLimit="2.75" Stroke="{DynamicResource BrushWindowEllipse1}" Margin="-20.993,1.588,0,-4.932" RenderTransformOrigin="0.5,0.5" HorizontalAlignment="Left" Width="23.41" Fill="{DynamicResource BrushWindowEllipse2}">
                                        <Ellipse.RenderTransform>
                                            <TransformGroup>
                                                <ScaleTransform ScaleX="1" ScaleY="1"/>
                                                <SkewTransform AngleX="0" AngleY="0"/>
                                                <RotateTransform Angle="0"/>
                                                <TranslateTransform X="0" Y="0"/>
                                            </TransformGroup>
                                        </Ellipse.RenderTransform>
                                    </Ellipse>
                                    <Ellipse Stretch="Fill" StrokeThickness="0.5" StrokeMiterLimit="2.75" Margin="-19.545,2.992,0,-3.474" RenderTransformOrigin="0.5,0.5" HorizontalAlignment="Left" Width="20.552">
                                        <Ellipse.RenderTransform>
                                            <TransformGroup>
                                                <ScaleTransform ScaleX="1" ScaleY="1"/>
                                                <SkewTransform AngleX="0" AngleY="0"/>
                                                <RotateTransform Angle="0"/>
                                                <TranslateTransform X="0" Y="0"/>
                                            </TransformGroup>
                                        </Ellipse.RenderTransform>
                                        <Ellipse.Stroke>
                                            <LinearGradientBrush StartPoint="0.402242,0.216115" EndPoint="0.712681,0.905675">
                                                <GradientStop Color="{DynamicResource BrushWindowGradient22}" Offset="0"/>
                                                <GradientStop Color="{DynamicResource BrushWindowGradient28}" Offset="1"/>
                                            </LinearGradientBrush>
                                        </Ellipse.Stroke>
                                        <Ellipse.Fill>
                                            <RadialGradientBrush RadiusX="0.76462" RadiusY="0.76462" Center="0.401156,0.212961" GradientOrigin="0.401156,0.212961">
                                                <RadialGradientBrush.RelativeTransform>
                                                    <TransformGroup>
                                                        <RotateTransform CenterX="0.401156" CenterY="0.212961" Angle="65.7628"/>
                                                    </TransformGroup>
                                                </RadialGradientBrush.RelativeTransform>
                                                <GradientStop Color="{DynamicResource BrushWindowGradient29}" Offset="0.21875"/>
                                                <GradientStop Color="{DynamicResource BrushWindowGradient26}" Offset="0.608127"/>
                                                <GradientStop Color="{DynamicResource BrushWindowGradient23}" Offset="0.995536"/>
                                            </RadialGradientBrush>
                                        </Ellipse.Fill>
                                    </Ellipse>
                                    <Path Stretch="Fill" Data="F1 M 495.199,261.824C 449.899,261.824 413.179,298.544 413.179,343.855C 413.179,349.436 413.191,351.033 416.227,352.772C 416.797,352.932 417.294,353.009 417.741,353.009C 420.013,353.009 421.007,351.017 423.895,347.768C 442.171,327.212 471.883,313.832 505.423,313.832C 521.839,313.832 537.343,317.037 551.023,322.724C 559.76,326.355 569.181,333.159 573.16,333.159C 573.586,333.159 573.95,333.081 574.243,332.911C 579.127,329.336 573.703,318.079 569.527,309.139C 556.459,281.191 528.103,261.824 495.199,261.824" Margin="-18.635,3.826,0,5.945" RenderTransformOrigin="0.5,0.5" HorizontalAlignment="Left" Width="18.405">
                                        <Path.RenderTransform>
                                            <TransformGroup>
                                                <ScaleTransform ScaleX="1" ScaleY="1"/>
                                                <SkewTransform AngleX="0" AngleY="0"/>
                                                <RotateTransform Angle="0"/>
                                                <TranslateTransform X="0" Y="0"/>
                                            </TransformGroup>
                                        </Path.RenderTransform>
                                        <Path.Fill>
                                            <LinearGradientBrush StartPoint="-0.0527107,-1.07544" EndPoint="-0.0527107,0.92073">
                                                <GradientStop Color="{DynamicResource BrushWindowGradient7}" Offset="0"/>
                                                <GradientStop Color="{DynamicResource BrushWindowGradient9}" Offset="0.267268"/>
                                                <GradientStop Color="{DynamicResource BrushWindowGradient10}" Offset="0.534247"/>
                                                <GradientStop Color="{DynamicResource BrushWindowGradient7}" Offset="1"/>
                                            </LinearGradientBrush>
                                        </Path.Fill>
                                    </Path>
                                    <Path Stretch="Fill" Data="F1 M 427.401,401.917C 423.864,397.494 421.167,393.385 421.167,393.385L 423.553,372.402C 427.799,375.059 432.837,377.179 438.671,379.035C 444.506,380.627 450.608,381.425 457.239,381.687C 461.216,381.687 464.929,380.891 468.379,379.832C 471.824,378.505 474.478,376.649 476.598,374.257C 478.721,371.873 479.781,368.69 479.781,364.976C 479.781,360.998 478.192,357.553 475.275,354.369C 472.091,351.187 467.316,348.005 460.686,344.822C 455.38,341.905 450.608,338.985 446.1,335.537C 441.588,331.824 438.143,327.846 435.225,323.074C 432.572,318.563 430.98,312.996 430.98,306.895C 430.98,297.348 433.634,288.858 438.671,281.966C 443.711,275.066 450.342,269.764 458.829,266.05C 467.316,262.338 476.865,260.483 487.208,260.483C 495.961,260.483 502.856,261.272 508.427,262.865C 513.728,264.195 517.976,266.05 520.892,267.91L 511.344,293.102C 508.956,291.779 505.508,290.447 500.733,288.858C 496.228,287.533 490.921,286.736 484.823,286.736C 477.658,286.736 472.358,288.33 468.642,291.247C 464.929,294.162 463.073,297.877 463.073,301.854C 463.337,305.834 465.195,309.282 468.908,312.463C 472.885,315.38 477.658,318.563 484.025,322.01C 492.777,326.256 499.674,331.824 504.713,337.66C 509.75,344.026 512.139,351.187 512.405,359.675C 512.139,370.282 509.487,379.035 504.448,386.195C 499.142,393.358 492.249,398.664 483.494,402.376C 474.742,406.089 464.929,407.945 454.323,407.945C 444.242,407.411 439.755,406.353 432.859,404.231C 429.99,403.459 429.432,403.057 427.401,401.917 Z " Margin="-17.735,3.676,0,-0.261" RenderTransformOrigin="0.5,0.5" HorizontalAlignment="Left" Width="11.259">
                                        <Path.RenderTransform>
                                            <TransformGroup>
                                                <ScaleTransform ScaleX="1" ScaleY="1"/>
                                                <SkewTransform AngleX="0" AngleY="0"/>
                                                <RotateTransform Angle="0"/>
                                                <TranslateTransform X="0" Y="0"/>
                                            </TransformGroup>
                                        </Path.RenderTransform>
                                        <Path.Fill>
                                            <LinearGradientBrush StartPoint="-0.258368,-0.493961" EndPoint="-0.258368,0.506039">
                                                <GradientStop Color="{DynamicResource BrushWindowGradient24}" Offset="0"/>
                                                <GradientStop Color="{DynamicResource BrushWindowGradient25}" Offset="0.501038"/>
                                                <GradientStop Color="{DynamicResource BrushWindowGradient27}" Offset="1"/>
                                            </LinearGradientBrush>
                                        </Path.Fill>
                                    </Path>
                                    <Path Stretch="Fill" Fill="{DynamicResource BrushWindowPath3}" Data="F1 M 424.198,397.729C 422.302,395.417 419.51,390.589 419.51,390.589L 422.197,368.486C 426.441,371.144 431.48,373.264 437.314,375.119C 443.148,376.712 449.251,377.51 455.882,377.772C 459.859,377.772 463.572,376.976 467.021,375.916C 470.467,374.589 473.122,372.734 475.24,370.342C 477.363,367.958 478.424,364.774 478.424,361.061C 478.424,357.083 476.835,353.637 473.918,350.454C 470.734,347.272 465.958,344.089 459.329,340.907C 454.023,337.989 449.251,335.07 444.742,331.622C 440.231,327.908 436.786,323.932 433.868,319.158C 431.215,314.648 429.622,309.08 429.622,302.98C 429.622,293.433 432.067,285.947 436.802,278.844C 436.885,278.719 456.135,252.844 495.26,256.926C 499.763,257.396 503.667,257.976 507.07,258.95C 512.372,260.279 516.618,262.135 519.534,263.994L 509.987,289.187C 507.6,287.865 504.152,286.533 499.376,284.942C 494.87,283.618 489.564,282.821 483.465,282.821C 476.301,282.821 471.001,284.415 467.285,287.331C 463.572,290.247 461.717,293.962 461.717,297.939C 461.98,301.919 463.837,305.366 467.551,308.548C 471.528,311.464 476.301,314.648 482.667,318.094C 491.42,322.34 498.316,327.908 503.356,333.744C 508.393,340.11 510.782,347.272 511.048,355.76C 510.782,366.366 508.13,375.119 503.09,382.279C 497.786,389.442 490.892,394.748 482.137,398.46C 473.385,402.174 463.572,404.029 452.966,404.029C 442.885,403.495 438.398,402.439 431.502,400.315C 427.831,399.328 426.857,398.939 424.198,397.729 Z " Margin="-17.922,3.223,0,0.185" RenderTransformOrigin="0.5,0.5" HorizontalAlignment="Left" Width="11.294">
                                        <Path.RenderTransform>
                                            <TransformGroup>
                                                <ScaleTransform ScaleX="1" ScaleY="1"/>
                                                <SkewTransform AngleX="0" AngleY="0"/>
                                                <RotateTransform Angle="0"/>
                                                <TranslateTransform X="0" Y="0"/>
                                            </TransformGroup>
                                        </Path.RenderTransform>
                                    </Path>
                                    <Grid x:Name="WindowLogoSymbolPlus" Visibility="Collapsed" HorizontalAlignment="Left" Margin="-9.526,8.023,0,0.319" Width="10.019">
                                        <Path Stretch="Fill" Fill="{DynamicResource BrushWindowPath3}" Data="F1 M 533.467,341.473C 538.68,329.821 543.33,320.161 547.419,312.494C 551.406,304.932 556.057,301.146 561.373,301.146C 563.62,301.146 564.747,302.374 564.747,304.828C 564.747,307.18 562.447,313.21 557.846,322.92C 555.801,327.214 552.887,333.501 549.106,341.782C 558.613,341.988 564.387,342.141 566.433,342.24C 573.18,342.24 577.676,342.855 579.926,344.081C 581.767,345.001 582.686,346.893 582.686,349.755C 582.686,354.867 580.486,357.421 576.093,357.421C 574.967,357.421 573.126,357.268 570.574,356.96C 568.63,356.654 561.167,356.502 548.186,356.502L 542.667,356.347C 539.294,364.321 536.021,372.753 532.853,381.646C 529.991,389.725 527.64,395.14 525.799,397.9C 523.653,401.174 521.251,402.807 518.593,402.807C 517.06,402.807 515.781,402.346 514.76,401.426C 513.431,400.303 512.766,398.922 512.766,397.287C 512.766,392.993 517.468,379.45 526.874,356.654C 517.98,357.064 512.154,357.523 509.393,358.034C 506.633,358.548 504.434,358.801 502.801,358.801C 500.243,358.801 498.2,357.676 496.667,355.428C 495.848,354.201 495.441,352.821 495.441,351.287C 495.441,346.687 498.098,343.828 503.413,342.701C 506.174,342.191 514.811,341.782 529.327,341.473L 533.467,341.473 Z " Margin="0.17,0.245,0,0" RenderTransformOrigin="0.5,0.5">
                                            <Path.RenderTransform>
                                                <TransformGroup>
                                                    <ScaleTransform ScaleX="1" ScaleY="1"/>
                                                    <SkewTransform AngleX="0" AngleY="0"/>
                                                    <RotateTransform Angle="0"/>
                                                    <TranslateTransform X="0" Y="0"/>
                                                </TransformGroup>
                                            </Path.RenderTransform>
                                        </Path>
                                        <Path Stretch="Fill" Fill="{DynamicResource BrushWindowPath4}" Data="F1 M 531.934,339.295C 537.147,327.643 541.797,317.982 545.887,310.316C 549.874,302.753 554.524,298.969 559.841,298.969C 562.087,298.969 563.214,300.196 563.214,302.649C 563.214,305.002 560.913,311.031 556.313,320.742C 554.268,325.036 551.354,331.322 547.574,339.604C 557.081,339.809 562.855,339.962 564.9,340.062C 571.647,340.062 576.144,340.675 578.393,341.903C 580.234,342.822 581.153,344.714 581.153,347.576C 581.153,352.688 578.953,355.242 574.56,355.242C 573.434,355.242 571.593,355.089 569.041,354.782C 567.098,354.476 559.635,354.322 546.654,354.322L 541.134,354.169C 537.761,362.143 534.488,370.575 531.32,379.468C 528.458,387.546 526.107,392.962 524.267,395.722C 522.12,398.995 519.717,400.628 517.06,400.628C 515.528,400.628 514.247,400.167 513.228,399.248C 511.898,398.124 511.234,396.744 511.234,395.109C 511.234,390.814 515.935,377.272 525.341,354.476C 516.447,354.885 510.621,355.344 507.86,355.856C 505.101,356.369 502.901,356.623 501.268,356.623C 498.711,356.623 496.667,355.498 495.134,353.249C 494.315,352.023 493.908,350.641 493.908,349.109C 493.908,344.508 496.564,341.649 501.881,340.523C 504.641,340.012 513.278,339.604 527.794,339.295L 531.934,339.295 Z " Margin="0,0,0.17,0.247" RenderTransformOrigin="0.5,0.5">
                                            <Path.RenderTransform>
                                                <TransformGroup>
                                                    <ScaleTransform ScaleX="1" ScaleY="1"/>
                                                    <SkewTransform AngleX="0" AngleY="0"/>
                                                    <RotateTransform Angle="0"/>
                                                    <TranslateTransform X="0" Y="0"/>
                                                </TransformGroup>
                                            </Path.RenderTransform>
                                        </Path>
                                    </Grid>
                                </Grid>

                                <!--Begin Header Info Area-->
                                <Grid Grid.Column="1" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" DataContext="{TemplateBinding WindowHeader}">
                                    <Grid.Resources>
                                        <Style TargetType="{x:Type ToolTip}">
                                            <Setter Property="OverridesDefaultStyle" Value="True"/>
                                            <Setter Property="VerticalOffset" Value="-2" />
                                            <Setter Property="FontSize" Value="10" />
                                            <Setter Property="FontFamily" Value="Tahoma" />
                                            <Setter Property="Panel.ZIndex" Value="99" />
                                            <Setter Property="Foreground" Value="{DynamicResource BrushTooltipForeground}" />
                                            <Setter Property="ToolTipService.ShowOnDisabled" Value="True" />
                                            <Setter Property="Template">
                                                <Setter.Value>
                                                    <ControlTemplate TargetType="{x:Type ToolTip}">
                                                        <Grid Name="Border" Background="Transparent" Width="{TemplateBinding Width}" Height="{TemplateBinding Height}" Margin="{TemplateBinding Margin}">
                                                            <Rectangle Margin="1.926,3.465,0.878,0" Fill="{DynamicResource BrushTooltipShadowBackground}" Stroke="{x:Null}" RadiusX="3" RadiusY="3" x:Name="shadow" Height="35.84" VerticalAlignment="Top"/>
                                                            <Rectangle Stroke="{DynamicResource BrushTooltipBorder}" RadiusX="3" RadiusY="3" x:Name="back" Height="37.07" VerticalAlignment="Top" Margin="0,0,2.609,0" Fill="{DynamicResource BrushTooltipBackground}"/>
                                                            <ContentPresenter Margin="5,-4,8,0" HorizontalAlignment="Center" VerticalAlignment="Center" />
                                                        </Grid>
                                                    </ControlTemplate>
                                                </Setter.Value>
                                            </Setter>
                                        </Style>
                                    </Grid.Resources>
                                    <Grid.ToolTip>
                                        <StackPanel Orientation="Vertical">
                                            <StackPanel Orientation="Horizontal" Margin="2,2,0,0" Height="14" VerticalAlignment="Top">
                                                <Label Content="{Binding Path=CompanyName}" Padding="0" Style="{DynamicResource ControlFont}" FontSize="10" Foreground="{DynamicResource BrushWindowHeaderForeground}"/>
                                                <ListBox ItemsSource="{Binding MenuPath}" Background="Transparent" ScrollViewer.HorizontalScrollBarVisibility="Disabled" ScrollViewer.VerticalScrollBarVisibility="Disabled" BorderThickness="0" HorizontalAlignment="Stretch" ItemContainerStyle="{DynamicResource ControlWindowHeaderPath}" FontSize="10">
                                                    <ListBox.ItemsPanel>
                                                        <ItemsPanelTemplate>
                                                            <StackPanel Orientation="Horizontal"/>
                                                        </ItemsPanelTemplate>
                                                    </ListBox.ItemsPanel>
                                                </ListBox>
                                            </StackPanel>
                                            <StackPanel Orientation="Horizontal" Margin="2,0,0,0" Height="14" VerticalAlignment="Bottom">
                                                <StackPanel Orientation="Horizontal">
                                                    <Label Content="{DynamicResource Infra.Controls.Label.Usuario}" FontSize="10" Foreground="{DynamicResource BrushWindowHeaderForeground}" Padding="0" Style="{DynamicResource ControlFont}"/>
                                                    <Label Content=": " FontSize="10" Foreground="{DynamicResource BrushWindowHeaderForeground}" Padding="0" Style="{DynamicResource ControlFont}"/>
                                                </StackPanel>
                                                <Label Content="{Binding UserName}" FontSize="10" Foreground="{DynamicResource BrushWindowHeaderForeground}" Padding="0" Style="{DynamicResource ControlFont}"/>
                                            </StackPanel>
                                        </StackPanel>
                                    </Grid.ToolTip>
                                    <Rectangle StrokeThickness="0.5" HorizontalAlignment="Left" Margin="13,14,0,12" Width="14" Height="14" Fill="{DynamicResource IconWindowInfo}"/>
                                    <StackPanel Orientation="Horizontal" Margin="42,8,0,0" Height="14" VerticalAlignment="Top">
                                        <Label Content="{Binding Path=CompanyName}" Padding="0" Style="{DynamicResource ControlFont}" FontSize="11" Foreground="{DynamicResource BrushWindowHeaderForeground}"/>
                                        <ListBox ItemsSource="{Binding MenuPath}" Background="Transparent" ScrollViewer.HorizontalScrollBarVisibility="Disabled" ScrollViewer.VerticalScrollBarVisibility="Disabled" BorderThickness="0" HorizontalAlignment="Stretch" ItemContainerStyle="{DynamicResource ControlWindowHeaderPath}" FontSize="11">
                                            <ListBox.ItemsPanel>
                                                <ItemsPanelTemplate>
                                                    <StackPanel Orientation="Horizontal"/>
                                                </ItemsPanelTemplate>
                                            </ListBox.ItemsPanel>
                                        </ListBox>
                                    </StackPanel>
                                    <StackPanel Orientation="Horizontal" Margin="42,0,0,6" Height="14" VerticalAlignment="Bottom">
                                        <StackPanel Orientation="Horizontal">
                                            <Label Content="{DynamicResource Infra.Controls.Label.Usuario}" FontSize="11" Foreground="{DynamicResource BrushWindowHeaderForeground}" Padding="0" Style="{DynamicResource ControlFont}"/>
                                            <Label Content=": " FontSize="11" Foreground="{DynamicResource BrushWindowHeaderForeground}" Padding="0" Style="{DynamicResource ControlFont}"/>
                                        </StackPanel>
                                        <Label Content="{Binding UserName}" FontSize="11" Foreground="{DynamicResource BrushWindowHeaderForeground}" Padding="0" Style="{DynamicResource ControlFont}"/>
                                    </StackPanel>
                                </Grid>
                                <!--End Header Info Area-->

                                <!--Begin Window Buttons-->
                                <Grid  Grid.Column="2" VerticalAlignment="Top" HorizontalAlignment="Right" Margin="0,14,19,7.5" Width="66.956">
                                    <Controls:Button x:Name="ButtonHelp" HorizontalAlignment="Left" Style="{DynamicResource ControlButtonHelp}" VerticalAlignment="Top" Content="Button" RenderTransformOrigin="0.453,0.504" Command="Controls:WindowCommands.ShowHelp" IsTabStop="False" />
                                    <Controls:Button x:Name="ButtonMinimizeWindow" HorizontalAlignment="Left" Margin="17.5,0,0,0" Style="{DynamicResource ControlButtonMinimize}" VerticalAlignment="Top" Content="Button" RenderTransformOrigin="0.453,0.504" Command="Controls:WindowCommands.Minimize" IsTabStop="False"/>
                                    <Controls:Button x:Name="ButtonMaximize" HorizontalAlignment="Right" Margin="0,0,17.25,0" Style="{DynamicResource ControlButtonMaximize}" VerticalAlignment="Top" Content="Button" Visibility="Collapsed" Command="Controls:WindowCommands.Maximize" IsTabStop="False"/>
                                    <Controls:Button x:Name="ButtonRestore" HorizontalAlignment="Right" Margin="0,0,17.25,0" Style="{DynamicResource ControlButtonRestore}" VerticalAlignment="Top" Content="Button" Command="Controls:WindowCommands.Restore" IsTabStop="False"/>
                                    <Controls:Button HorizontalAlignment="Right" Style="{DynamicResource ControlButtonClose}" VerticalAlignment="Top" Command="Controls:WindowCommands.Close" IsTabStop="False"/>
                                </Grid>
                                <!--End Window Buttons-->
                            </Grid>
                            <!--Begin Logo Area-->

                            <!--Begin Window Content Area-->
                            <Grid Margin="10.5,0.5,10.5,2" Grid.Row="1" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Background="Transparent" x:Name="PART_WindowContent">
                                <Controls:ScrollViewer x:Name="PART_ScrollViewer" ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto" Width="Auto" Height="Auto" Background="Transparent">
                                    <!-- 
                                        Nas properties InitialWindowWidth e InitialWindowHeight é utilizado o converter WindowContentSizeConverter 
                                        que diminui 23 da largura e altura inicial da janela. Isso é necessário porque se esse valor não for 
                                        diminuido do tamanho inicial o scroll vertical e horizontal aparece.
                                    -->
                                    <Controls:WindowContent AutoContentWidth="{TemplateBinding AutoContentWidth}"
                                                                   AutoContentHeight="{TemplateBinding AutoContentHeight}"
                                                                   InitialWindowWidth="{Binding OriginalWidth, RelativeSource={RelativeSource TemplatedParent}, Mode=OneTime, Converter={StaticResource windowContentSizeConverter}, ConverterParameter=23}" 
                                                                   InitialWindowHeight="{Binding OriginalHeight, RelativeSource={RelativeSource TemplatedParent}, Mode=OneTime, Converter={StaticResource windowContentSizeConverter}, ConverterParameter=23}" 
                                                                   ContentWidth="{Binding ViewportWidth, ElementName=PART_ScrollViewer}" 
                                                                   ContentHeight="{Binding ViewportHeight, ElementName=PART_ScrollViewer}" 
                                                                   WindowZoom="{TemplateBinding WindowZoom}">
                                        <ContentPresenter Content="{TemplateBinding ContentControl.Content}" ContentTemplate="{TemplateBinding ContentControl.ContentTemplate}" />
                                    </Controls:WindowContent>
                                </Controls:ScrollViewer>
                            </Grid>
                            <!--End Window Content Area-->
                        </Grid>

                        <!--Begin Message Error-->
                        <Grid Margin="0,0,0,-205" Width="420" Height="200" HorizontalAlignment="Center" VerticalAlignment="Bottom" RenderTransformOrigin="0.5,0.5" x:Name="MessageError" Opacity="1">
                            <Grid.RenderTransform>
                                <TransformGroup>
                                    <ScaleTransform ScaleX="1" ScaleY="1"/>
                                    <SkewTransform AngleX="0" AngleY="0"/>
                                    <RotateTransform Angle="0"/>
                                    <TranslateTransform X="0" Y="0"/>
                                </TransformGroup>
                            </Grid.RenderTransform>
                            <Path Stretch="Fill" Stroke="{x:Null}" Margin="3,0,0,0" x:Name="box_baixo_sombra" Data="M13.216002,0.5 L404.784,0.5 C411.80686,0.49999642 417.5,6.1931436 417.5,13.215994 L417.5,198.072 0.5,198.072 0.5,13.215994 C0.50000218,6.1931436 6.1931494,0.49999642 13.216002,0.5 z">
                                <Path.Fill>
                                    <LinearGradientBrush EndPoint="1.174,-0.089" StartPoint="0.441,0.709">
                                        <GradientStop Color="{DynamicResource BrushWindowGradient13}" Offset="0"/>
                                        <GradientStop Color="{DynamicResource BrushWindowGradient11}" Offset="1"/>
                                    </LinearGradientBrush>
                                </Path.Fill>
                            </Path>
                            <Path Stretch="Fill" Stroke="{DynamicResource BrushWindowPath5}" Margin="0,0,3,0" x:Name="box_baixo" Data="M13.216002,0.5 L404.784,0.5 C411.80686,0.49999642 417.5,6.1931436 417.5,13.215994 L417.5,198.072 0.5,198.072 0.5,13.215994 C0.50000218,6.1931436 6.1931494,0.49999642 13.216002,0.5 z">
                                <Path.Fill>
                                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                        <GradientStop Color="{DynamicResource BrushWindowGradient17}" Offset="0"/>
                                        <GradientStop Color="{DynamicResource BrushWindowGradient15}" Offset="1"/>
                                        <GradientStop Color="{DynamicResource BrushWindowGradient16}" Offset="0.503"/>
                                    </LinearGradientBrush>
                                </Path.Fill>
                            </Path>
                            <Path Stretch="Fill" Stroke="{x:Null}" Margin="7.5,7.572,10.5,1.5" x:Name="box_degradee" Data="M12.715999,1.3642421E-12 L390.28399,1.3642421E-12 C397.30685,-3.2186495E-06 403,5.693144 403,12.715998 L403,189.5 1.1368684E-12,189.5 1.1368684E-12,12.715998 C-2.8908241E-06,5.693144 5.6931443,-3.2186495E-06 12.715999,1.3642421E-12 z">
                                <Path.Fill>
                                    <LinearGradientBrush EndPoint="0.502,-0.278" StartPoint="0.502,0.993" MappingMode="RelativeToBoundingBox">
                                        <GradientStop Color="{DynamicResource BrushWindowGradient19}" Offset="0"/>
                                        <GradientStop Color="{DynamicResource BrushWindowGradient17}" Offset="0.935"/>
                                        <GradientStop Color="{DynamicResource BrushWindowGradient12}" Offset="0.562"/>
                                        <GradientStop Color="{DynamicResource BrushWindowGradient8}" Offset="0.331"/>
                                        <GradientStop Color="{DynamicResource BrushWindowGradient14}" Offset="0.722"/>
                                    </LinearGradientBrush>
                                </Path.Fill>
                            </Path>
                            <Path Stretch="Fill" Stroke="{x:Null}" Margin="0.5,0.5,3.5,0" VerticalAlignment="Top" Height="91.726" Data="M12.715996,0 L404.284,0 C411.30685,-3.8146973E-06 417,5.6931419 417,12.716 L417,49.661015 C380.39072,74.519222 300.79376,91.725994 208.5,91.725994 C116.20622,91.725994 36.609283,74.519222 0,49.661015 L0,12.716 C0,5.6931419 5.6931477,-3.8146973E-06 12.715996,0 z" x:Name="elipse_degradee">
                                <Path.Fill>
                                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                        <GradientStop Color="{DynamicResource BrushWindowGradient21}" Offset="0"/>
                                        <GradientStop Color="{DynamicResource BrushWindowGradient18}" Offset="0.874"/>
                                        <GradientStop Color="{DynamicResource BrushWindowGradient20}" Offset="0.353"/>
                                    </LinearGradientBrush>
                                </Path.Fill>
                            </Path>
                            <Rectangle Stroke="{x:Null}" RadiusX="9.542" RadiusY="9.542" Margin="14.017,7.939,44.15,0" VerticalAlignment="Top" Height="21.289" Fill="{DynamicResource BrushWindowRectangle1}" x:Name="caixa_titulo_sombra"/>
                            <Rectangle Stroke="{x:Null}" RadiusX="9.542" RadiusY="9.542" Margin="13.525,6.186,44.892,0" x:Name="caixa_titulo" VerticalAlignment="Top" Height="21.289">
                                <Rectangle.Fill>
                                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                        <GradientStop Color="{DynamicResource BrushWindowGradient34}" Offset="0"/>
                                        <GradientStop Color="{DynamicResource BrushWindowGradient35}" Offset="1"/>
                                    </LinearGradientBrush>
                                </Rectangle.Fill>
                            </Rectangle>
                            <TextBlock HorizontalAlignment="Left" Margin="34.175,8.072,0,0" VerticalAlignment="Top" Width="167" Height="16.5" Foreground="{DynamicResource BrushWindowTextBlock1}" TextWrapping="Wrap" FontSize="14" Text="{DynamicResource Infra.Controls.Label.MensagensErro}" Style="{DynamicResource ControlFont}"/>
                            <ListBox Margin="8.504,36.072,11.654,4" ItemsSource="{TemplateBinding ErrorMessages}" BorderThickness="0" Style="{DynamicResource ControlWindowErrorMessageListBox}" ItemContainerStyle="{DynamicResource ControlWindowErrorMessageListBoxItem}" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"/>
                            <Controls:Button Margin="0,9.243,11.654,0" Style="{DynamicResource ControlButtonMessageBoxMinimize}" VerticalAlignment="Top" Height="14.5" Content="Button" x:Name="ButtonMinimize" Width="14.5" HorizontalAlignment="Right" Command="Controls:WindowCommands.MinimizeErrorMessages" />
                            <!--Controls:Button Margin="0,9.243,11.654,0" Style="{DynamicResource ControlButtonMessageBoxClose}" VerticalAlignment="Top" Height="14.5" Content="Button" x:Name="ButtonClose" Width="14.5" HorizontalAlignment="Right" Command="Controls:WindowCommands.ClearErrorMessages"/-->
                        </Grid>
                        <!--End Message Error-->

                        <!--Bottom-->
                        <!--Begin Zoom Window-->
                        <Border HorizontalAlignment="Left" Margin="20,0,0,16.75" VerticalAlignment="Bottom" ClipToBounds="True" Opacity="1" x:Name="border">
                            <Controls:Zoom x:Name="PART_Zoom" CurrentZoom="{Binding WindowZoom, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent} }" Height="0" ShowRestore="False" VerticalAlignment="Bottom"/>
                        </Border>
                        <!--End Zoom Window-->

                        <!--Begin Zoom Button-->
                        <Grid Margin="0,0,0,3" VerticalAlignment="Bottom" Height="14.475" HorizontalAlignment="Stretch">
                            <Border BorderThickness="1" Margin="80.89,0,20,0" VerticalAlignment="Bottom" Height="14.475" Background="{DynamicResource BrushWindowBackground3}"/>
                            <!--Begin Zoom Button-->
                            <Button x:Name="PART_ButtonZoom" Style="{StaticResource ControlWindowZoomButton}" HorizontalAlignment="Left" Margin="20,0,0,0" Command="Controls:WindowCommands.ShowZoomControl"/>
                            <!--End Zoom Button-->
                        </Grid>

                        <!--Begin Messages Count-->
                        <Button x:Name="ErrorsIndicator" Height="13.975" Width="70" HorizontalAlignment="Center" VerticalAlignment="Bottom" Margin="0,0,0,3" Visibility="Collapsed" Command="Controls:WindowCommands.RestoreErrorMessages">
                            <Button.Style>
                                <Style TargetType="Button">
                                    <Setter Property="Template">
                                        <Setter.Value>
                                            <ControlTemplate TargetType="Button">
                                                <Grid>
                                                    <Rectangle Fill="{DynamicResource BrushWindowRectangle2}" Stroke="{x:Null}" RadiusX="0" RadiusY="0" x:Name="fundo_para_referencia"/>
                                                    <StackPanel Orientation="Horizontal" Margin="28.893,0,0.623,0" >
                                                        <TextBlock TextWrapping="Wrap" FontSize="9" Foreground="{DynamicResource BrushWindowTextBlock2}" Text="Erros (" Style="{DynamicResource ControlFont}"/>
                                                        <TextBlock TextWrapping="Wrap" FontSize="9" Foreground="{DynamicResource BrushWindowTextBlock2}" Text="{Binding Path=ErrorMessages.Count, RelativeSource={RelativeSource AncestorType=Controls:Window}}" Style="{DynamicResource ControlFont}"/>
                                                        <TextBlock TextWrapping="Wrap" FontSize="9" Foreground="{DynamicResource BrushWindowTextBlock2}" Text=")" Style="{DynamicResource ControlFont}"/>
                                                    </StackPanel>
                                                    <Grid HorizontalAlignment="Left" Margin="8,2,0,0" Width="15.414" Height="8.823" VerticalAlignment="Top">
                                                        <Rectangle Stroke="{x:Null}" RadiusX="1.144" RadiusY="1.144" x:Name="cartinha_baixo">
                                                            <Rectangle.Fill>
                                                                <LinearGradientBrush EndPoint="0.534,1.059" StartPoint="0.534,0.318">
                                                                    <GradientStop Color="{DynamicResource BrushWindowGradient40}" Offset="0"/>
                                                                    <GradientStop Color="{DynamicResource BrushWindowGradient39}" Offset="1"/>
                                                                </LinearGradientBrush>
                                                            </Rectangle.Fill>
                                                        </Rectangle>
                                                        <Rectangle Stroke="{x:Null}" RadiusX="1.144" RadiusY="1.144" Margin="0.133,0.164,0.138,0.5" x:Name="cartinha_cima">
                                                            <Rectangle.Fill>
                                                                <LinearGradientBrush EndPoint="0.511,1.162" StartPoint="0.498,0.079">
                                                                    <GradientStop Color="{DynamicResource BrushWindowGradient37}" Offset="0.121"/>
                                                                    <GradientStop Color="{DynamicResource BrushWindowGradient33}" Offset="1"/>
                                                                    <GradientStop Color="{DynamicResource BrushWindowGradient36}" Offset="0"/>
                                                                    <GradientStop Color="{DynamicResource BrushWindowGradient37}" Offset="0.536"/>
                                                                </LinearGradientBrush>
                                                            </Rectangle.Fill>
                                                        </Rectangle>
                                                        <Path Stretch="Fill" Stroke="{x:Null}" Margin="0.563,0.168,0.612,3.175" Data="M549.95307,305.00002 L556.49969,310.20868 563.00001,305.00003 z" x:Name="___Path__cartinha_aba_sombra" StrokeThickness="1.2">
                                                            <Path.Fill>
                                                                <LinearGradientBrush EndPoint="0.511,1.162" StartPoint="0.498,0.079">
                                                                    <GradientStop Color="{DynamicResource BrushWindowGradient32}" Offset="1"/>
                                                                    <GradientStop Color="{DynamicResource BrushWindowGradient31}" Offset="0.007"/>
                                                                </LinearGradientBrush>
                                                            </Path.Fill>
                                                        </Path>
                                                        <Path Stretch="Fill" Stroke="{x:Null}" Margin="0.563,0.128,1.004,3.492" x:Name="___Path___cartinha_aba_cima" Data="M549.95307,305.00002 L556.49969,310.20868 563.00001,305.00003 z">
                                                            <Path.Fill>
                                                                <LinearGradientBrush EndPoint="0.511,1.162" StartPoint="0.498,0.079">
                                                                    <GradientStop Color="{DynamicResource BrushWindowGradient30}" Offset="1"/>
                                                                    <GradientStop Color="{DynamicResource BrushWindowGradient38}" Offset="0"/>
                                                                    <GradientStop Color="{DynamicResource BrushWindowGradient37}" Offset="0.147"/>
                                                                </LinearGradientBrush>
                                                            </Path.Fill>
                                                        </Path>
                                                    </Grid>
                                                </Grid>
                                            </ControlTemplate>
                                        </Setter.Value>
                                    </Setter>
                                </Style>
                            </Button.Style>
                        </Button>
                        <!--End Messages Count-->
                        <Rectangle Fill="{DynamicResource BrushWindowRectangle3}" VerticalAlignment="Bottom" Height="3" Margin="1,0,1,0" RenderTransformOrigin="0.5,0.5"/>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="WindowState" Value="Maximized">
                            <Setter Property="Visibility" Value="Collapsed" TargetName="ButtonMaximize"/>
                            <Setter Property="Visibility" Value="Visible" TargetName="ButtonRestore"/>
                            <!--<Setter Property="Visibility" Value="Collapsed" TargetName="Grip"/>-->
                        </Trigger>
                        <Trigger Property="WindowState" Value="Normal">
                            <Setter Property="Visibility" Value="Visible" TargetName="ButtonMaximize"/>
                            <Setter Property="Visibility" Value="Collapsed" TargetName="ButtonRestore"/>
                        </Trigger>
                        <Trigger Property="ShowErrorsPanel" Value="True">
                            <Trigger.EnterActions>
                                <BeginStoryboard Storyboard="{DynamicResource AnimationWindowErrorMessagesShow}"/>
                            </Trigger.EnterActions>
                            <Trigger.ExitActions>
                                <BeginStoryboard Storyboard="{DynamicResource AnimationWindowErrorMessagesHide}"/>
                            </Trigger.ExitActions>
                        </Trigger>
                        <Trigger Property="HasErrors" Value="True">
                            <Setter Property="Visibility" Value="Visible" TargetName="ErrorsIndicator"/>
                        </Trigger>
                        <MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="WindowState" Value="Normal"/>
                                <Condition Property="ResizeMode" Value="CanResizeWithGrip"/>
                            </MultiTrigger.Conditions>
                            <!--<Setter Property="Visibility" Value="Visible" TargetName="Grip"/>-->
                        </MultiTrigger>
                        <Trigger Property="ResizeMode" Value="NoResize">
                            <Setter Property="Visibility" Value="Collapsed" TargetName="ButtonMaximize"/>
                            <Setter Property="Visibility" Value="Collapsed" TargetName="ButtonMinimizeWindow"/>
                            <Setter Property="Visibility" Value="Collapsed" TargetName="ButtonRestore"/>
                        </Trigger>
                        <Trigger Property="ResizeMode" Value="CanMinimize">
                            <Setter Property="IsEnabled" Value="False" TargetName="ButtonMaximize"/>
                            <Setter Property="IsEnabled" Value="False" TargetName="ButtonRestore"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="ControlWindowHeaderPath" TargetType="ListBoxItem">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="ListBoxItem">
                    <WrapPanel Orientation="Horizontal" Margin="3,-1,3,0">
                        <TextBlock Text="►" FontFamily="Times New Roman" FontSize="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type ListBox}}, Path=FontSize}" Foreground="{DynamicResource BrushWindowHeaderSeparatorBackground}" Margin="0,0.5,4,0"/>
                        <TextBlock Text="{Binding .}" FontSize="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type ListBox}}, Path=FontSize}" Foreground="{DynamicResource BrushWindowHeaderForeground}" HorizontalAlignment="Right" Style="{DynamicResource ControlFont}"/>
                    </WrapPanel>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <!--END WINDOW-->

</ResourceDictionary>

